package com.haiyangwang1.lesson8.ex1;

public class Multiply {
    public static void main(String[] args) {
        String a = "";
        String b = "";
        String[] args1=new String[2];
        args1[0]="10";
        try {
            int i = Integer.parseInt(args1[0]);//将字符串解析成int类型
            int j = Integer.parseInt(args1[1]);
            //int ji=i*j;
            System.out.println(i*j);
        }catch (RuntimeException e1){

            e1.printStackTrace();
            System.out.println(e1.getCause()+" "+e1.getMessage());
        }
//        catch (ArrayIndexOutOfBoundsException e1){
//            System.out.println("数组越界");
//        }catch (NumberFormatException e2){
//            System.out.println("数据格式不对");
//        }

    }
}
